package com.ruoyi.redtea.dualprevent.service;

import com.ruoyi.redtea.dualprevent.domain.bo.TrainAnalyseUnitBo;
import com.ruoyi.redtea.dualprevent.domain.entity.TrainAnalyseUnit;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author lgp
 * @description 针对表【train_analyse_unit(分析单元)】的数据库操作Service
 * @createDate 2024-05-14 15:40:14
 */
public interface TrainAnalyseUnitService {
    //    boolean queryByPage()
    TrainAnalyseUnit queryById(Long id);

    @Transactional(rollbackFor = Exception.class)
    boolean insert(List<TrainAnalyseUnitBo> trainAnalyseUnits);

    boolean update(TrainAnalyseUnit trainAnalyseUnit);

    boolean deleteByIds(List<Long> trainAnalyseUnits);
}
